import sys
from PyQt5.QtWidgets import QApplication
from matting_gui import MattingGUI
from matting_processor import MattingProcessor

def main():
    # 创建Qt应用
    app = QApplication(sys.argv)
    
    # 创建抠图处理器
    matting_processor = MattingProcessor()
    
    # 创建并显示主窗口
    window = MattingGUI(matting_processor)
    window.show()
    
    # 进入应用主循环
    sys.exit(app.exec_())

if __name__ == "__main__":
    main()